package com.ruitu.router_module.bean;

public class BaseResult2<B> {
    private int code;
    private String message;
    private B data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public B getData() {
        return data;
    }

    public void setData(B data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return code == 200;
    }
}
